package org.x.usermod.service;


import com.mybatisflex.core.paginate.Page;
import org.springframework.transaction.annotation.Transactional;
import org.x.usermod.dto.CreateRoleUserDTO;
import org.x.usermod.entity.SysRoleUser;
import com.mybatisflex.core.service.IService;
import org.x.usermod.vo.RoleVo;

/**
 * 用户角色关联表 服务层。
 *
 * @author mybatis-flex-helper automatic generation
 * @since 1.0
 */
public interface ISysRoleUserService extends IService<SysRoleUser> {
    @Transactional
    int createRoleUser(CreateRoleUserDTO createRoleUserDTO);
    @Transactional
    int removeByUserId(Long userId);

   Page<RoleVo> RoleList(CreateRoleUserDTO createRoleUserDTO);

}